home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Ubuntu 9.10 PL
/
karmelkowy-koliberek-desktop-9.10-i386-PL.iso
/
casper
/
filesystem.squashfs
/
usr
/
bin
/
rarian-sk-rebuild
< prev
next >
Wrap
Text File
|
2009-10-22
|
821b
|
38 lines
#!/bin/bash
# Another simple wrapper script. This time for scrollkeeper-rebuilddb
# This one is slightly more complex in that we have to run a command!
# We also need to pull out the paths from the relevant place first.
prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
convert_dir=/usr/share/omf
datarootdir=/usr/share
statedir=/var/lib/rarian
datadir=/usr/share
output_dir=${datadir}/help
package_version=0.8.1
convert_string="REPLACEME"
if [ ! 1 ]
then
if [ -e $statedir/rarian-update-mtimes ]
then
for x in $(grep -e '^0:@:' $statedir/rarian-update-mtimes)
do
if [[ $convert_string != "REPLACEME" ]]
then
convert_string=$convert_string:${x##0:@:}
else
convert_string=${x##0:@:}
fi
done
else
convert_string=$convert_dir
fi
$bindir/rarian-sk-update -v --clean-index -o $convert_string
fi